package com.fang.networkdisk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fang.networkdisk.entity.bo.RequestPathBo;
import com.fang.networkdisk.entity.po.TbNetDisRequestPath;
import com.fang.networkdisk.entity.vo.RequestPathVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 请求路径，当一个接口需要多个权限的时候需要此表。gateway_request_path_permission_relation Mapper 接口
 * </p>
 *
 * @author Bernie_fang
 * @since 2024-12-07
 */
public interface TbNetDisRequestPathMapper extends BaseMapper<TbNetDisRequestPath> {

    List<RequestPathVo> queryRequestPath(@Param("requestPathBo") RequestPathBo requestPathBo);

    int queryRequestPathCount(@Param("requestPathBo") RequestPathBo requestPathBo);

    int deleteRequestPathById(@Param("id") Integer id, @Param("authorId") String authorId, @Param("date") Date date);
}
